import 'package:flutter/material.dart';

import '../widgets/app_dialog.dart';

Future<T?> showAlertDialog<T>(
    {required BuildContext context,
    required String content,
    String? cancelText,
    VoidCallback? onConfirm,
    VoidCallback? onCancel}) {
 return showDialog<T>(
      context: context,
      barrierDismissible: false,
      builder: (context) => AppDialog(
            content: content,
            cancelText: cancelText,
            onConfirm: onConfirm,
            onCancel: onCancel,
          ));
}
